package com.sojson.project.sys.sharding.enums;

/**
 * 数据分片字段类型枚举类
 * 
 * @author liu
 * @date 2024-04-25
 */
public enum EShardingField {

    BIGINT("bigint", EShardingFieldType.NUM),
    INT("int", EShardingFieldType.NUM),
    TINYINT("tinyint", EShardingFieldType.NUM),
    VARCHAR("varchar", EShardingFieldType.NOT_NUM);

    /** 类型名 */
    private String typeName;
    /** 类型 */
    private EShardingFieldType type;

    private EShardingField(String typeName, EShardingFieldType type) {
        this.typeName = typeName;
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public EShardingFieldType getType() {
        return type;
    }

    public void setType(EShardingFieldType type) {
        this.type = type;
    }

}